import {request} from "../../request";

export function getzoneById(id){
    return request({
        url:`/lswms/zone/${id}`,
        method:'get'
    })
}


export function getzonePage(data){
    return request({
        url:'/lswms/zone/page',
        method:'put',
        data:data
    })
}

export function putzone(data){
    return request({
        url:'/lswms/zone',
        method:'put',
        data:data
    })
}
export function postzone(data){
    return request({
        url:'/lswms/zone',
        method:'post',
        data:data
    })
}

export function deletezone(data){
    return request({
        url:`/lswms/zone`,
        method:'delete',
        data:data
    })
}
export function exportzone(data){
    return request({
        url:`/lswms/zone/export`,
        method:'get',
        data:data,
        responseType:'blob'
    })
}

export function getzonelist(data){
    return request({
        url:`/lswms/zone/list`,
        method:'get',
        data:data
    })
}

export function getzonelisthasInventory(data){
    return request({
        url:`/lswms/zone/getzonelisthasInventory`,
        method:'get',
        data:data
    })
}